UIButton

extension Reactive where Base: UIButton

The reactive extension can be accessed through the reactive instance property and the reactive static property.

  • The action to be triggered when the button is pressed. It also controls the enabled state of the button.

    Declaration

    Swift

    public var pressed: CocoaAction<Base>?
  • Sets the title of the button for its normal state.

    Declaration

    Swift

    public var title: BindingTarget<String>
  • Sets the title of the button for the specified state.

    Declaration

    Swift

    public func title(for state: UIControlState) -> BindingTarget<String>
  • Sets the image of the button for the specified state.

    Declaration

    Swift

    public func image(for state: UIControlState) -> BindingTarget<UIImage?>
  • Undocumented

    Declaration

    Swift

    extension Reactive where Base: UIButton